package com.big.tree.service.observer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

/**
 * 观察者
 * @author big tree
 */
@Slf4j
@Service
public class SmsService {

    @EventListener
    public void smsArrears(UserArrearsEvent event) {
        log.info("短信欠费通知，你好 {} ,请尽快缴费啊啊啊啊！", event.getUserName());
    }
}
